package com.wealth.scsj.p_app.view.activity;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;


import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.adapter.Dateadapter;
import com.wealth.scsj.p_app.bean.DateBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 预计收益
 */
public class IncomActivity extends BaseActivity {

    private RecyclerView date_rv;
    private List<DateBean> dateBeanList;
    private Dateadapter dateadapter;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_incom);

        initToolbar();
        setToolbarTitle("预计收益");
        hasBack(true);
    }

    @Override
    protected void initView() {

        date_rv = findViewById(R.id.date_rv);
        date_rv.setLayoutManager(new LinearLayoutManager(this));

    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

        dateBeanList = new ArrayList<>();

        for (int i = 0; i < 6; i++) {
            dateBeanList.add(new DateBean("fff", "fff", "fff"));
        }

        dateadapter = new Dateadapter(dateBeanList);
        date_rv.setAdapter(dateadapter);

    }
}
